import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:yt_devops/components/gaps.dart';
import 'package:yt_devops/components/log_utils.dart';
import 'package:yt_devops/components/yt_text_style.dart';
import 'package:yt_devops/components/my_gesture_detector.dart';
import 'package:yt_devops/resources/str_res_keys.dart';
import 'package:yt_devops/styles/styles.dart';

/**
 *
 * @Description TODO
 * @Author liuer
 * @CreateTime 2024年03月09日 10:00
 */
class FullScreenBack extends StatelessWidget {
  final Function callBack;
  const FullScreenBack(this.callBack,{super.key});

  @override
  Widget build(BuildContext context) {
    return Container(
      color: Colors.white,
      height: 50,
      child: Row(
        children: [
          // SizedBox(width: ScreenUtil().statusBarHeight),
          MyGestureDetector(onTap: (){
            Log.d('FullScreenBack');
            callBack();
          }, child: Container(
            color: Colors.white,
            height: 100,
            child: Row(
              children: [
                const Icon(Icons.arrow_back_ios_new),
                Gaps.hGap16,
                Text(
                  ResKey.back.tr,
                  style: ytTextStyle(fontSize: 18.sp,color: Colour.mainTextColor,fontWeight: FontWeight.bold),
                ),
              ],
            ),
          ))
        ],
      ),
    );
  }
}
